package com.bigshen.demo.annotation.injectioncomponents.a1propertysource;

import com.bigshen.demo.project.entity.Child;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@PropertySource("classpath:values.properties")
public class MyConfig {

    @Bean
    public Child child() {
        return new Child();
    }

}
